# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
#CFLAGS="-O2 -pipe"
#gentoo normal: CFLAGS="-O2 -pipe -march=native -ggdb -fvar-tracking-assignments -fno-omit-frame-pointer -ftrack-macro-expansion=2"
#gentoo hardened:
#this was LAST(with hardened, 2015 dec 27th): CFLAGS="-O2 -pipe -march=native -ggdb -fvar-tracking-assignments -fno-omit-frame-pointer -ftrack-macro-expansion=2 -fstack-protector-all -fPIC"
#this is for non-hardened, normal, without any debugging info eg. -ggdb; 2015 dec 27th:
CFLAGS="-O2 -pipe -march=native -g0 -fno-var-tracking-assignments -fomit-frame-pointer -ftrack-macro-expansion=0 -fno-stack-protector -fPIC"
#workaround for compiling rust with clang (no effect unless recompiling clang and/or llvm with these):
#CFLAGS="-O2 -pipe -march=native -ggdb -fno-omit-frame-pointer -fstack-protector-all -fPIC"
#CFLAGS="-O2 -pipe -march=native -ggdb -fvar-tracking-assignments -fno-omit-frame-pointer -ftrack-macro-expansion=2 -Wstack-protector -fstack-protector-all"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
#USE="bindist mmx sse sse2"
#XXX: disabled 'bindist' because we don't plan on having binaries distributed!
#(3 jan 2016) re-enabled 'bindist'
#(3 jan 2016) globally disabled(the previous enabled): gstreamer -minimal -thunar  (SHIT already had gstreamer then later -gstreamer in the same USE, so the latter musta been in effect!)  egl (because -egl works in firefox to enable hwaccel even tho it's slower than without hwaccel! but with egl hwaccel won't work at all - can't remember exactly how(prolly acts as if, it's always no hwaccel - those fps speeds))
#(3 jan 2016) removed firefox-only USE flags from global: -system-cairo system-icu system-jpeg system-libvpx     system-sqlite
#(3 jan 2016) added: -cracklib -nullok (aka no empty passwords allowed)
USE="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a X bindist btrfs crypt cryptsetup cscope dbus device-mapper      git gpg gpm gtk3 jpeg lock  mosh-hardening pie   pulseaudio readline session  ssp startup-notification     strong-security  xcomposite -cdr -cgi -cvs -debug -dvdr -emacs     -firmware-loader -fortran -gnome -ipv6 -java -jit -kde -libssp -mudflap -lua     -luajit -lvm1 -mclib -network-cron -nls -nopie -nossp -plymouth     qt4 -racket -ruby -samba -static -static-libs -symlink -systemd -tcl     -test -unicode -vim-pager -wifi -yahoo -filter_audio -libav consolekit policykit extensions -gstreamer -gstreamer-0 -egl -gmp-autoupdate -tty-helpers -tcpd lm_sensors opus ogg png smp -cups -xattr -cracklib -nullok"

#note: disabled: installsources (due to -ggdb not used) and binpkg-multi-instance and unmerge-backup  (and maybe more, i forgot) and xattr
#disabled(3 jan 2016): parallel-install -skiprocheck -suidctl
#added(3 jan 2016): -network-sandbox-proxy
#parallel-fetch needed, or else it will only fetch at the beginning of the emerge for each package!
FEATURES="assume-digests binpkg-logs -binpkg-multi-instance -buildpkg -buildsyspkg -candy ccache cgroup -clean-logs collision-protect -compress-build-logs -compress-index -compressdebug config-protect-if-modified -digest -distcc -distcc-pump distlocks downgrade-backup ebuild-locks -fail-clean fakeroot fixlafiles force-mirror -force-prefix -getbinpkg -installsources ipc-sandbox -keeptemp -keepwork -lmirror merge-sync -metadata-transfer -mirror multilib-strict network-sandbox -network-sandbox-proxy news -noauto -noclean -nodoc -noinfo -noman nostrip -notitles parallel-fetch -parallel-install prelink-checksums preserve-libs -protect-owned sandbox sfperms -sign skiprocheck split-elog split-log -splitdebug strict -stricter suidctl -test -test-fail-continue -unknown-features-filter unknown-features-warn -unmerge-backup unmerge-logs -unmerge-orphans userfetch userpriv usersandbox -usersync webrsync-gpg -xattr"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"


PORTAGE_GPG_DIR="/etc/portage/gpg"
#PORT_LOGDIR="/var/log/portage/ebuild.logs/" #this writes to disk EVERY LINE!!! while building the package(ie. ./configure ) - to disable, unset this var(man says)!
PORT_LOGDIR="/tmp/ebuild.logs/"
PORTAGE_BINHOST=""
#inside virtualbox: CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3"
#the following CPU flags are for Z575 laptop:
CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a"
ACCEPT_KEYWORDS="~amd64"
#ACCEPT_LICENSE="* -@EULA"
ACCEPT_LICENSE="-* @FREE"

INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /etc/systemd"
USE_PYTHON=2.7
#USE_PYTHON=3.4
#PYTHON_TARGETS="python3_4"

MAKEOPTS="-j4"
# Standard PC (BIOS)
GRUB_PLATFORMS="pc"
INPUT_DEVICES="keyboard synaptics evdev" #virtualbox evdev" # synaptics" only on host(not VM) TODO: unsure if vmmouse or even mouse is needed! maybe not needed due to evdev! - apparently not needed, but we'll see on bare metal
VIDEO_CARDS="radeon" #"virtualbox"  #radeon


#CCACHE_DIR="/var/tmp/ccache"
CCACHE_DIR="/ccache"
CCACHE_UMASK="0002"
CCACHE_SIZE="200G"
CCACHE_NOCOMPRESS=1
CCACHE_COMPRESSLEVEL=0

EVCS_UMASK="0002"

GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.romnet.org/gentoo/ http://tux.rainside.sk/gentoo/  http://www.las.ic.unicamp.br/pub/gentoo/"
#http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.osuosl.org/"


XFCE_PLUGINS="brightness clock trash battery power"

#EPATCH_SOURCE='/patches'  #has no effect!
#EPATCH_SUFFIX='pech'
#EPATCH_FORCE='no'  #defaults to yes!
# if 'no' then expected patches filename: ??_${ARCH}_foo.${EPATCH_SUFFIX}
#use 'all' for the ${ARCH} part to apply a patch on all architectures (eg. not just amd64)

#EVCS_OFFLINE='1'
#EVCS_OFFLINE if non-empty prevents any online operations (eg. git pull) - this is what I need when I don't have internet but I want to re-emerge a -9999 package


